package easy;

public class a867_转置矩阵 {
    public int[][] transpose(int[][] matrix) {
        int [][]ans=new int[matrix[0].length][matrix.length];
        for(int i=0;i<matrix.length;i++){
            for (int j=0;j<matrix[0].length;j++){
                ans[j][i]=matrix[i][j];
            }
        }
        return ans;
    }
}
